/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package G3.Mod;

import android.os.Environment;
import java.io.File;

/**
 *
 * @author Dymion
 */
public class readfile {

    private String location;
    private String filename;

    public readfile() {
    }

    public readfile(String location, String filename, boolean sd) {
        if (sd == true) {
            this.location = Environment.getExternalStorageDirectory() + location;
        } else {
            this.location = location;
        }
        this.filename = filename;
    }

    public void fileDelete() {
        File folder = new File(location);
        File file = new File(folder, filename);
        file.delete();
    }

    public boolean fileExists() {
        File folder = new File(location);
        File file = new File(folder, filename);
        return file.exists();
    }
}
